import Base from '../_classes/component/Component.form';
import editForm from './editForm';

const {
  SelectEditData,
  SelectEditDisplay,
  SelectEditValidation,
  // SelectEditConditional,
} = editForm;

export default function (...extend: any) {
  const form = Base(
    [
      {
        key: 'data',
        ignore: true,
      },
      {
        key: 'api',
        ignore: true,
      },
      {
        key: 'logic',
        ignore: true,
      },
      {
        key: 'data_pro',
        label: 'Data',
        components: SelectEditData,
      },
    ],
    ...extend,
  );

  return form;
}
